package com.tianji.learning.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "笔记实体")
public class NoteDTO {

    @ApiModelProperty("课程id")
    @NotNull(message = "课程id不能为空")
    private Long courseId;

    @ApiModelProperty("对应节的id")
    @NotNull(message = "节的id不能为空")
    private Long sectionId;


    @ApiModelProperty("章id")
    @NotNull(message = "章的id不能为空")
    private Long chapterId;

    @ApiModelProperty("记录笔记时视频播放的时间点，单位：秒")
    @NotNull(message = "播放的时间点不能为空")
    private Integer noteMoment;

    @ApiModelProperty(value = "是否被隐藏 - 0.显示，1.隐藏；默认0")
    @NotNull(message = "是否被隐藏")
    private boolean isPrivate;

    @ApiModelProperty(value = "笔记内容")
    private String content;




}